# coding: utf-8
from enum import Enum

from qfluentwidgets import StyleSheetBase, Theme, qconfig

from .settings import CSS_DIR


class StyleSheet(StyleSheetBase, Enum):
    LIST_VIEW = "list_view"

    def path(self, theme=Theme.AUTO):
        theme = qconfig.theme if theme == Theme.AUTO else theme
        return (CSS_DIR / f"{theme.value.lower()}/{self.value}.css").as_posix()
